package com.kuaimacode.kframework.mybatis.models.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author 中元
 * @date 2019/04/08
 */
@TableName("user_order_evaluate")
@Data
public class OrderEvaluate implements Serializable {
	@TableField(exist = false)
	private static final long serialVersionUID = 1L;
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;
	@ApiModelProperty(value = "订单ID")
	@TableField("order_id")
	private Long orderId;
	@ApiModelProperty(value = "服务星级 0-5星")
	@TableField("star")
	private Integer star;
	@ApiModelProperty(value = "评价内容")
	@TableField("content")
	private String content;
	@ApiModelProperty(value = "打赏金额")
	@TableField("reward")
	private BigDecimal reward;
	@ApiModelProperty(value = "评价图片  图片名称以,分隔")
	@TableField("images")
	private String images;
	@ApiModelProperty(value = "打赏支付状态  0-未支付 1-已支付 2-支付失败")
	@TableField("reward_status")
	private Integer rewardStatus;
	@ApiModelProperty(value = "创建时间")
	@TableField("create_at")
	private Date createAt;
	@ApiModelProperty(value = "更新时间")
	@TableField("update_at")
	private Date updateAt;
	@ApiModelProperty(value = "打赏支付时间")
	@TableField("pay_at")
	private Date payAt;
	@ApiModelProperty(value = "支付类型 1-微信 2-支付宝")
	@TableField("pay_type")
	private Integer payType;
	@ApiModelProperty(value = "打赏支付交易序号")
	@TableField("out_trade_no")
	private String outTradeNo;
	@ApiModelProperty(value = "打赏支付流水号")
	@TableField("trans_no")
	private String transNo;
	@ApiModelProperty(value = "用户ID")
	@TableField("user_id")
	private Long userId;
	@ApiModelProperty(value = "师傅ID")
	@TableField("master_id")
	private Long masterId;
}
